import zmq,time
context = zmq.Context.instance()
sock = context.socket(zmq.SUB)

sock.connect('tcp://127.0.0.1:12031')
sock.connect('tcp://us.hi-hi.cn:12031')
# sock.connect('tcp://qd.hi-hi.cn:12031')
sock.connect('tcp://evm.hi-hi.cn:12031')
# sock.connect('tcp://do.hi-hi.cn:12031')
sock.setsockopt(zmq.SUBSCRIBE, "")
while True:
  print sock.recv()



